#define _CRT_SECURE_NO_WARNINGS 1
#include"Cirqueue.h"

int main()
{
	CirQueue<int> cq;
	int ar[9] = { 1,2,3,4,5,6,7,8,9 };
	int br[9] = { 9,8,7,6,5,4,3,2,1 };
	for (auto e : ar)
	{
		cq.push(e);
		if (cq.full())
			cout << cq.full() << endl;
	}
	for (auto e : br)
	{
		cq.push(e);
		if (cq.full())
			cout << cq.full() << endl;
	}
	for (size_t i = 0; i < 100; i++)
	{
		cq.push(i);
		if (cq.full())
			cout << cq.full() << endl;
	}
	for (size_t i = 0; i < 100; i++)
	{
		cout << cq.top() << "->" << "->" <<cq.size()<< "    ";
		cq.pop();
	}
	

	return 0;
}